package com.linuxgt.baidu.zhidao;

import java.math.BigInteger;
import java.util.Scanner;

public class TestProject {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("How many numbers do you want?");
        int n = input.nextInt();

        BigInteger b = new BigInteger("1000000000000000000000000000000000000000000000000000");
        BigInteger k=b.remainder(new BigInteger("2"));
        BigInteger g=b.remainder(new BigInteger("3"));
        int i =0;
        int x=k.intValue();
        int y=g.intValue();

        while(i<n){
            if(x==0||y==0){
                System.out.println(b);
                b=b.add(new BigInteger("1"));
                i++;
            }
            else{
                b=b.add(new BigInteger("1"));
            }
        }
    }
}